﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pibby.Core.Views;
using invrt;
using Pibby.Core.IO;

namespace Pibby.Core.Presenters
{
    public class ApplicationSettingsPresenter : Presenter<IApplicationSettingsView, IUserSettings>
	{
        public IUserSettings Settings { get; set; }

        public ApplicationSettingsPresenter(IApplicationSettingsView view, IUserSettings model)
			: base (view, model)
		{
            this.Settings = new PerUserSettings(model);
		}

		protected override void SubscribeToClientEvents()
		{
			this.View.Initialising += new EventHandler(View_Initialising);
			this.View.InitialiseComplete += new EventHandler(View_InitialiseComplete);
			this.View.AcceptChanges += new EventHandler(View_AcceptChanges);
			this.View.DiscardChanges += new EventHandler(View_DiscardChanges);
		}


		public override void UnsubscribeToClientEvents()
		{
		}

		#region View Events

		void View_Initialising(object sender, EventArgs e)
		{
		}

		void View_InitialiseComplete(object sender, EventArgs e)
		{
		}

		void View_AcceptChanges(object sender, EventArgs e)
		{
        }

		void View_DiscardChanges(object sender, EventArgs e)
		{
		}

		#endregion View Events

	}
}
